import request from '@/utils/request'

// 查询商品报价列表
export function listPrice(query) {
  return request({
    url: '/share/price/list',
    method: 'get',
    params: query
  })
}

// 查询商品报价详细
export function getPrice(priceId) {
  return request({
    url: '/share/price/' + priceId,
    method: 'get'
  })
}

// 新增商品报价
export function addPrice(data) {
  return request({
    url: '/share/price',
    method: 'post',
    data: data
  })
}

// 修改商品报价
export function updatePrice(data) {
  return request({
    url: '/share/price',
    method: 'put',
    data: data
  })
}

// 删除商品报价
export function delPrice(priceId) {
  return request({
    url: '/share/price/' + priceId,
    method: 'delete'
  })
}

// 导出商品报价
export function exportPrice(query) {
  return request({
    url: '/share/price/export',
    method: 'get',
    params: query
  })
}